﻿@model yq.WebModel.ListPage<yq.Model.Logic.SysTask>
           <script>

               //刷新页面
               function RefList() {
                   window.location = window.location;
               }
 </script>      

@Url.Css("Css/metro/css/list.css")
@Url.Script("Scripts/metro/list.js")
<div id="container" class="container">
    @Html.Action("Navigation", "Home")
           @Html.Action("RowLeft", "PublicReuse", new { Area = "Home" })
    <div id="container_r" class="container_right">
        @Html.Action("HeadTitle", "PublicReuse", new { Area = "Home" })
 
        <div class="icodiv">
            @Html.ActionRoleLink(Model.RoleLinkList["添加"], new { }, new { @class = "btn btn-warning",alt="添加", onclick = "return $.DialogAjax(this,RefList)" })
        
        </div>
                  
<div class="divlistFormList" style=" min-height:430px">
    <div>
        <table class="table table-striped tableNew" style="position: relative;">
            <thead>
                <tr>
                    <th style="width:200px;">
                        @(Html.RawFor(obj => obj.PageList[0].Title))
                    </th>
                    <th style="width:50px">
                        @(Html.RawFor(obj => obj.PageList[0].State))
                    </th>
                      <th style="width:50px">
                        @(Html.RawFor(obj => obj.PageList[0].Types))
                    </th>
                       <th style="width:80px">
                        @(Html.RawFor(obj => obj.PageList[0].Interval))
                    </th>
                       <th style="width:150px">
                        @(Html.RawFor(obj => obj.PageList[0].NextTime))
                    </th>
                    <th style="width: 200px">
                        操作
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var info in Model.List)
                {
                    <tr>
                        <td  style="width:200px;word-break:break-all">
                            @info.Title 
                        </td>
                        <td>
                            @info.State.ExtName()
                        </td> 
                          <td>
                            @info.Types.ExtName()
                        </td> 
                          <td>
                            @info.Interval
                        </td> 
                          <td>
                            @info.NextTime
                        </td> 
                        <td>
                       
                      @Html.ActionRoleLink(Model.RoleLinkList["查看"], new { Rowid = info.Rowid }, new { @class = "a-role", onclick = "return $.DialogAjax(this)", alt = "查看" })
                         <span class="divider">/</span>
                     @Html.ActionRoleLink(Model.RoleLinkList["编辑"], new { Rowid = info.Rowid }, new { @class = "a-role", onclick = "return $.DialogAjax(this)", alt = "编辑" })
                           <span class="divider">/</span>
                     @Html.ActionRoleLink(Model.RoleLinkList["删除"], new { Rowid = info.Rowid }, new { @class = "a-role", onclick = "return $.confimSubmit(this)", alt = "确认删除？" })
                                   <span class="divider">/</span>
                      @Html.ActionRoleLink(Model.RoleLinkList["执行"], new { Rowid = info.Rowid }, new { @class = "a-role", onclick = "return $.confimSubmit(this)", alt = "确定立即执行一次？" })
                        </td>
                    </tr>
                }
                @if (Model.List.Count == 0)
                { 
                    <tr>
                        <td colspan="6" style=" text-align:center" >
                            未能搜索到数据
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
    </div>
</div>
